package com.black.app.mapper.store;

import com.black.app.domain.req.my.myshoppingcar.AppShoppingCarQueryReq;
import com.black.app.domain.resp.my.myshoppingcar.AppShoppingCarResp;
import com.black.app.domain.resp.my.myshoppingcar.UserShoppingCarResp;
import com.black.app.domain.store.AppStoreShoppingCart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【app_store_shopping_cart】的数据库操作Mapper
* @createDate 2024-10-31 11:15:37
* @Entity com.black.app.domain.store.AppStoreShoppingCart
*/
public interface AppStoreShoppingCartMapper extends BaseMapper<AppStoreShoppingCart> {

    //后台-购物车分页查询
    List<AppShoppingCarResp> paginationQuery(@Param("req") AppShoppingCarQueryReq req);
    //获取用户购物车列表
    List<UserShoppingCarResp> getMyShoppingCarList(@Param("userId") Integer userId);
    //根据商品id和规格id获取购物车对象
    AppStoreShoppingCart getShoppingCarByProductIdAndSpecificationId(@Param("userId") Integer userId,@Param("productId") Integer productId, @Param("specificationId") Integer specificationId);

}




